<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>
<?php if($title && $catid) { ?>
<?php $sitelist = getcache('sitelist', 'commons')?>
<?php echo $title;?>_<?php echo $sitelist[$siteid]['name'];?>
<?php } elseif ($catid) { ?>
<?php $sitelist = getcache('sitelist', 'commons')?>
<?php echo $catname;?>_<?php echo $sitelist[$siteid]['name'];?>
<?php } else { ?>
<?php echo $sitelist[$siteid]['name'];?>_<?php echo $sitelist[$siteid]['site_title'];?>
<?php } ?>
</title>
<?php if(!$title && !$catname) { ?>
<meta name="keywords" content="<?php echo $SEO['keyword'];?>">
<meta name="description" content="<?php echo $SEO['description'];?>">
<?php } ?>
<script type="text/javascript" src="<?php echo JS_PATH;?>collection.js"></script>
<link href="<?php echo CSS_PATH;?>cstar.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="box">
    <div id="nav">
        <div id="logo"><?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"block\" data=\"op=block&tag_md5=98e911fb3ab44f68f53a6dd29c566b33&pos=logo\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">添加碎片</a>";}$block_tag = pc_base::load_app_class('block_tag', 'block');echo $block_tag->pc_tag(array('pos'=>'logo',));?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?></div>
        <div id="nav_r">
            <span class="fl">
                <a href="<?php echo APP_PATH;?>" title="<?php echo $SEO['title'];?>">网站首页</a>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=819e594227901313f8001655454e715f&action=category&catid=0&num=25&siteid=%24siteid&order=listorder+ASC&return=category\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">修改</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$category = $content_tag->category(array('catid'=>'0','siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'25',));}?>
                <?php $CATE = $category?>
                <?php $n=1;if(is_array($category)) foreach($category AS $r) { ?>
                     |<a href="<?php echo $r['url'];?>" title="<?php echo $r['catname'];?>"><?php echo $r['catname'];?></a>
                <?php $n++;}unset($n); ?>
                <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
            </span>
            <span class="fr">
                <a href="javascript:void(0)" title="设为首页" onclick="setHomepage('<?php echo APP_PATH;?>')">设为首页</a>
                <a href="javascript:void(0)" title="加入收藏" onclick="addFavor('<?php echo APP_PATH;?>','<?php echo $SEO['site_title'];?>')">加入收藏</a>
            </span>
        </div>
    </div>
    <div id="banner" class="mt8"><?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"block\" data=\"op=block&tag_md5=73cc3f469ea33c6db63f6aa131537c6c&pos=banner\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">添加碎片</a>";}$block_tag = pc_base::load_app_class('block_tag', 'block');echo $block_tag->pc_tag(array('pos'=>'banner',));?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?></div>